<style type="text/css">
body{background:#eee}
.parent-category{float:left; width:100%; height:auto; min-height:100%;}
.parent-category ul{margin:0; padding:0; width:100%;}
.parent-category ul li{list-style:none; text-align:center; height:50px; line-height:50px; white-space:nowrap; width:100%; border-bottom:1px solid #e0e0e0; position:relative; right:-1px;}
.parent-category ul li.active{border-right:1px solid #fff; z-index: 10000}
.parent-category ul li a{display:inline-block; width:100%; height:100%; text-decoration:none;}
.children-category{width:100%; min-height:100%; height:auto; color: #252525;}
.children-category ul{list-style:none; margin:0; padding:0; overflow-y:auto; overflow-x:hidden; border-left:1px solid #e0e0e0; min-height:100%;}
.children-category ul li{text-align:left; height: 32px; line-height: 32px; padding-left: 10px}
.children-category ul li.delivery-tips{height:25px; line-height:25px; margin-top: -15px; font-size: .65rem; color: #ff2d4b}
.children-category ul li a{display:inline-block; width:100%; height:100%; text-decoration:none;}
.children-category ul li a span{font-size: .6rem; color: #999;}
.children-category .block{display:block; color:#ef1e15; font-size:.6rem;}
.fe-floatright-bottom a {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #ff9999;
    color: #fff;
    line-height: 0.7rem;
	font-size:0.45rem;
    margin: 0.5rem auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
.yellow {color:#f58220}
.fui-cell-group .fui-cell:before {
	content: " ";
	position: absolute;
	left: 0.5rem;
	right: 0.5rem;
	top: -1px;
	height: 1px;
	border-top: 0 solid #ebebeb;
	color: #D9D9D9;
	-webkit-transform-origin: 0 0;
	-ms-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: scaleY(0.5);
	-ms-transform: scaleY(0.5);
	transform: scaleY(0.5);
}
.fui-cell-group .sm {
    padding:0.2rem 0
}
</style>
<div class="fui-page">
    <div style="width:100%;height:9rem;background: linear-gradient(#FF4444, #fff);padding-top:0.3rem;">
		<div class="fui-cell-group" style="margin-top:0;background:none;">
		<div class="fui-cell" style="background:none;padding:0 0.5rem">
			<div class="fui-cell-label" style="width:auto;color:#fff;margin-top:-0.6rem">
				<div class="c" style="background:rgba(0, 0, 0, 0.3);border-radius:0.5rem;width:1.5rem">
					<i href="javascript:;" ng-click="goback();" class="icon icon-back" style="font-size:1rem"></i>
				</div>
			</div>
			<div class="fui-cell-info"></div>
			<div class="fui-cell-remark noremark" style="color:#fff;font-size:0.6rem;margin-right:0">
				<div class="fui-icon c">
						<div class="fui-tag" style="padding:0.2rem">
							<div style="background:rgba(0, 0, 0, 0.3);border-radius:0.5rem">
								<i href="javascript:;" ng-click="pagedata.setlike();toogle(pagedata.store,'islike')" ng-class="{'icon jinyunicon':1,'icon-follow':pagedata.store.islike !=1,'icon-xiai':pagedata.store.islike >0}" style="font-size:0.8rem"></i>
							</div>
							<div>收藏</div>
						</div>
						<div class="fui-tag" style="padding:0.2rem" >
							<div style="background:rgba(0, 0, 0, 0.3);border-radius:0.5rem">
							<i href="javascript:;" onclick="$('#showsharecover').modal();" class="icon icon-fenxiang2" style="font-size:0.8rem"></i>
							</div>
							<div>分享</div>
						</div>
						<div class="fui-tag" style="padding:0.2rem" >
							<div style="background:rgba(0, 0, 0, 0.3);border-radius:0.5rem">
							<i href="javascript:;" ng-click="access_json('jy_merch/myshop//merchid='+pagedata.store.id)" class="icon icon-icon-test" style="font-size:0.8rem"></i>
							</div>
							<div>更多</div>
						</div>
				</div>
			</div>
		</div>
		</div>
	</div>
	<div class='fui-content' style="padding:0.5rem;top:0">
	<div class="fui-cell-group" style="background:#fff;margin-top:-6.6rem;padding:0.5rem;border-radius:0.5rem">
					<div class="title bold" style="width:100%;font-size:1rem">{{pagedata.store.merchname || '平台自营'}}</div>
					<div class="fui-cell sm">
						<div class="fui-cell-info">
							<i ng-class="{'icon icon-shoucang-tianchong':1, 'yellow':pagedata.store.star>=1}" style="font-size:0.6rem"></i>
							<i ng-class="{'icon icon-shoucang-tianchong':1, 'yellow':pagedata.store.star>=2}" style="font-size:0.6rem"></i>
							<i ng-class="{'icon icon-shoucang-tianchong':1, 'yellow':pagedata.store.star>=3}" style="font-size:0.6rem"></i>
							<i ng-class="{'icon icon-shoucang-tianchong':1, 'yellow':pagedata.store.star>=4}" style="font-size:0.6rem"></i>
							<i ng-class="{'icon icon-shoucang-tianchong':1, 'yellow':pagedata.store.star>=5}" style="font-size:0.6rem"></i>
							{{pagedata.store.star || '5.0'}}
							<span style="margin-left:0.2rem"> 销量 {{pagedata.store.salenum || 0}}</span>
						</div>
						<div class="fui-cell-remark" ng-click="access_json('jy_merch/myshop//merchid='+pagedata.store.id)">
							{{pagedata.store.pingjianum || '0'}}评价
						</div>
					</div>
					<div class="subtitle" ng-if="pagedata.store.coupons.length>0" ng-click="access_json('jy_weishop/coupon.index//merchid='+pagedata.store.id)" style="padding:0.3rem 0">
						<div style="overflow-x:scroll;white-space:nowrap">
						<span ng-repeat="c in pagedata.store.coupons" class="jylabel jylabel-red" style="font-size:0.55rem;border-radius: 0.2rem;background-color:#fff;color:red;border: 1px solid red;margin-right:0.2rem">{{c.title}}</span>
						</div>
					</div>
					<div style="width:100%;border-radius:0.5rem;height:5rem;background:url({{tomedia(pagedata.store.topimg) || '../addons/jy_merch/resource/images/myshoptop.jpg'}});no-repeat 50%;background-size: cover;background-position:top center;">
					</div>
					<div class="fui-cell sm">
						<div class="fui-cell-text" style="font-size:0.65rem;padding-right:1rem;line-height:2">
							<div class="text">地址：{{pagedata.store.address || '暂无店铺地址'}}</div>
							<div class="text">
								商家类型：
								<span style="margin-left:0.2rem">{{pagedata.store.grouptitle || '无'}}</span>
								<span class="r-f" href="javascript:" ng-click="access_json('jy_city/myshop//id='+pagedata.store.id)">
									<i class="icon icon-dianpu" style="font-size:0.6rem"></i> 进入商城 >
								</span>
							</div>
						</div>
						<div class="fui-cell-remark noremark">
							<div class="fui-icon c">
								<div class="fui-tag" style="padding:0">
									<i href="javascript:;" ng-click="pagedata.openLocation(pagedata.store);" class="icon icon-ditu" style="font-size:1rem"></i>
									<div class="subtitle">导航</div>
								</div>
								<div class="fui-tag" style="padding:0">
									<i href="javascript:;" href="tel:{{pagedata.store.mobile2}}" class="icon icon-phone" style="font-size:1rem"></i>
									<div class="subtitle">电话</div>
								</div>
							</div>
						</div>
					</div>
	</div>
	<div class="weui_cells weui_cells_access" style="margin-top:0.5rem">
		<div class="fui-cell-group" style="margin-top:0;background:none;">
			<div class="fui-cell" style="background:none;padding:0 0.5rem">
				<div class="fui-cell-label" style="width:auto">
					<img style="height:2rem" ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/noavatar.gif'}}"/>
				</div>
				<div class="fui-cell-info" style="text-align:left">
					<div class="text">
					<i ng-if="!pagedata.merchmember.id || pagedata.merchmember.id<=0" class="fui-tag fui-tag-blue">粉丝</i> 
					<i class="fui-tag fui-tag-red">{{pagedata.merchmember.id>0?'商户会员':'非会员'}}</i> 
					{{pagedata.member.nickname || '匿名粉丝'}}</div>
					<div class="text">余额：{{pagedata.merchmember.credit2 || '0.00'}} <span href="javascript:;" ng-click="access_json('jy_merch/member.recharge/')" class="jylabel jylabel-info" style="border: 1px solid #f60;color:#f60;">充值</span></div>
					
				</div>
				<div href="javascript:;" ng-click="access_json('jy_merch/member.index//merchid='+pagedata.store.id)" class="fui-cell-remark" style="color:#fff;">
					进入我的会员
				</div>
			</div>
		</div>
	</div>
	<div class="fui-tab-scroll" style="margin-top:0;padding-left:0">
		<div class="item on" style="height:2rem;line-height:2rem"><a>商家推荐</a></div>
	</div>
	<div ng-if="pagedata.tuigoods.length>0" class="fui-goods-group block" style="padding-bottom:0">
					<div class="fui-cell-scroll">
							<div ng-repeat="g in pagedata.tuigoods" href="javascript:;" ng-click="access_json('jy_merch/myshop//id='+pagedata.store.id+'&goodsid='+g.id)" class="fui-goods-item item" style="float:none;position: relative;width:6rem;margin:0;border-bottom: 0 solid #e7e7e7">
										<div ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="height:3.5rem;position:relative;background-image: url('{{tomedia(g.image) ||'../addons/jy_merch/resource/images/nologo.png'}}')">
												<div ng-show="g.total <=0" class="salez" style="background-image: url('{{tomedia(pagedata.shopset.shop.saleout)}}'); "></div>
												<div ng-if="g.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
										</div>
										<div class="detail" style="padding-left:0;">
											<div class="name" style="font-size:0.6rem:color:#999">
												{{g.title}}
											</div>
											<div class="price" style="color:#fb5032;margin-top: 0;font-size:0.8rem">
												￥{{g.active.price || g.price}}
											</div>
										</div>
							</div>
					</div>
	</div>
	<div class="fui-tab-scroll" style="margin-top:0;padding-left:0">
		<div ng-class="{'item':1,'on':pagedata.params.order=='goods'}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.order='goods';pagedata.getlist('goods');">产品</a></div>
		<div ng-if="pagedata.store.fuwu_type.indexOf(';zhaopin;')>=0" ng-class="{'item':1,'on':pagedata.params.order=='zhaopin'}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.order='zhaopin';pagedata.getlist('zhaopin');">招聘</a></div>
		<div ng-if="pagedata.store.fuwu_type.indexOf(';fuwu;')>=0" ng-class="{'item':1,'on':pagedata.params.order=='fuwu'}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.order='fuwu';pagedata.getlist('fuwu');">家政服务</a></div>
		<div ng-if="pagedata.store.yuyue_type!='no' && pagedata.store.yuyue_type" ng-class="{'item':1,'on':pagedata.params.order=='yuyue'}" style="height:2rem;line-height:2rem"><a href="javascript:;" ng-click="pagedata.params.order='yuyue';pagedata.getlist('yuyue');">预定</a></div>
	</div>
	<div class="weui_cells weui_cells_access" style="margin-top:0">
	<div ng-if="pagedata.params.order!='goods'" class="fui-list" ng-repeat="item in pagedata.list" style="background:#fff;border-radius:0.5rem" href="javascript:;" ng-click="access_json(pagedata.gourl+item.id)">
			<div class="fui-list-media storelogo">
					<img class="round" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
			</div>
			<div class="fui-list-inner">
					<div class="title" style="font-size:0.76rem;height:auto">
					<span class="jylabel jylabel-success">{{item.groupname}}</span> 
						{{item.title}}
					</div>
					<div class="subtitle" style="font-size:0.55rem;margin-top:0.5rem">
						<div ng-if="pagedata.params.order=='yuyue'" class="store-moneylimit">
								 <span>最低消费¥ <span class="yellow">{{item.money || '0.00'}}</span></span> | 
								 <span>预定定金¥<span class="yellow"> {{item.pay || '0.00'}}</span></span>
						</div>
						<div ng-if="pagedata.params.order=='zhaopin'">
								<i class="icon icon-map"></i>{{item.address || '无地址'}}
						</div>
					</div>
			</div>
			<div class="fui-list-angle angle"></div>
	</div>
	<div ng-if="pagedata.params.order=='goods'" class="fui-goods-group block">
			<div ng-repeat="item in pagedata.list" class="fui-goods-item">
				<div ng-click="access_json('jy_merch/myshop//merchid='+pagedata.store.id);" ng-class="{'image':1, 'echelon':item.active.title}" data-text="{{item.active.title}}" style="position:relative;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})">
						<div ng-show="item.total <=0" class="salez" style="background-image: url({{tomedia(pagedata.shopset.saleout) || '../addons/jy_weishop/resource/images/salez.png'}});"></div>
						<div ng-if="item.video" class="playbtn"><i class="icon icon-iconfontplay2" style="font-size:1.6rem;"></i></div>
				</div>
				<div ng-click="access_json('jy_merch/myshop//merchid='+pagedata.store.id);" class="detail" ng-class="{'detail':1,'commission_money':item.commission_money}">
					<div class="name">
							<i ng-show="item.ispresell == 1" class="fui-tag fui-tag-danger">预售</i>
							<span ng-show="item.ispresell != 1" class="fui-tag fui-tag-danger" style="background:linear-gradient(to right,rgba(244,221,187,0.6),rgba(235,216,174,1));color:#512f0a;width:auto;font-weight:400">{{item.merchid>0?'商户':'直营'}}</span>
							{{item.title}}
					</div>
					<div class="price" style="margin-top: 0">
						<span class="text">￥{{item.active.price || item.price}}</span>
						<span class="syscolorred"><i class="icon icon-tianmaochaoshigouwuche"></i></span>
					</div>
					<div style="margin-top:-0.35rem">
						<span ng-if="item.active.title" class="fui-tag-pink-big" style="font-weight:400;font-size:0.6rem;margin-right:0.2rem;padding: 0.1rem 0.3rem;">{{item.active.title}}</span>
						<span class="subtitle" style="font-weight:400;font-size:0.6rem">已售{{item.salenum || 0}}{{item.unit || '件'}}</span>
					</div>
				</div>
			</div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 " style="margin-top:1rem">
		<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有内容！</p>
	</div>
	</div>
</div>
</div>
<div ng-if="pagedata.show_fansxieyi" class="popup">
	<div class="popup-body">
		<div class="popup-center">
			<i class="closed icon icon-cuowu" style="font-size:1.2rem;top:105%;" ng-click="pagedata.show_fansxieyi=false"></i>
			<div class="content-images" style="padding:0.5rem;height:20rem; overflow-y:scroll;">
					<div class="title bold" style="font-size:0.8rem">{{pagedata.xieyi.title||'会员用户协议'}} / <small>Read Ggree</small></div>
					<div class="text" style="padding-top:0.5rem;font-size:0.7rem" ng-bind-html="trust(pagedata.xieyi.content)">
					</div>
			</div>
			<div class="modal-footer">
				<div ng-click="pagedata.show_fansxieyi=false;post({'storeid':pagedata.store.id},'jy_merch/myshop/up_fans/isfail=1')" class="mod-fail">不同意</div>
				<div ng-click="post({'storeid':pagedata.store.id},'jy_merch/myshop/up_fans/')" class="mod-success">同意</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<script language="javascript">
wx.ready(function () {
	scope.scancode = function(){
			wx.scanQRCode({
				needResult: 1, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
				scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
				success: function (res) {
					var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
					location.href= result;					
				}
			});
	};
});
scope.pagedata.openLocation=function(item){
	wx.openLocation({
	latitude: item.lat_lng.lat, // 纬度，浮点数，范围为90 ~ -90
	longitude: item.lat_lng.lng, // 经度，浮点数，范围为180 ~ -180。
		name: item.province+item.city+item.district, // 位置名
		address: item.address2, // 地址详情说明
		scale: 20, // 地图缩放级别,整形值,范围从1~28。默认为最大
		infoUrl: '', // 在查看位置界面底部显示的超链接,可点击跳转
		success:function(){
			//alert(1111);
		}
	});
}
scope.pagedata.getlist=function(order){
	scope.pagedata.isgolist = false;
	scope.pagedata.params.page=1;
	if(order){
		scope.pagedata.params.order=order;
	}
	scope.loading=true;
	setTimeout(function(){
		scope.loading=false;
		scope.$evalAsync();
	},500);	
	if(order=='zhaopin'){		
		scope.tool.get_list('jy_city/merch/getzhaopin/',true)
		scope.pagedata.gourl='jy_zhaopin/item_detail//id=';
	}else if(order=='fuwu'){		
		scope.tool.get_list('jy_city/merch/getfuwu/',true)
		scope.pagedata.gourl='jy_yuyue/sever_detail//id=';
	}else if(order=='yuyue'){		
		scope.tool.get_list('jy_city/merch/getyuyue/',true)
		scope.pagedata.gourl='jy_city/yuding//id=';
	}else if(order=='goods'){		
		scope.tool.get_list('jy_city/myshop/list/merchid='+scope.pagedata.store.id,true)
		scope.pagedata.gourl='jy_merch/myshop//merchid='+scope.pagedata.store.id;
	}
}
scope.pagedata.getlist('goods');
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.params.order=='zhaopin'){		
		scope.tool.get_list('jy_city/merch/getzhaopin/',true)
	}else if(scope.pagedata.params.order=='fuwu'){		
		scope.tool.get_list('jy_city/merch/getfuwu/',true)
	}else if(scope.pagedata.params.order=='yuyue'){		
		scope.tool.get_list('jy_city/merch/getyuyue/',true)
	}
}
//获取关注
scope.pagedata.setlike=function(){
	scope.post_json('jy_merch/myshop/like/',{'merchid':scope.pagedata.store.id});
}
</script>
<div ng-include="sys_html('_footer')"></div>